package nc.impl.so.m32;

import java.util.List;

import nc.bs.so.m32.bp.SIPreviewFileBp;
import nc.bs.so.m32.util.FileDownLoadUtil;
import nc.bs.so.salequotation.bp.QuotBp;
import nc.itf.so.m32.ISaleManageExtkkServer;
import nc.vo.pub.BusinessException;
import nc.vo.pub.filesystem.NCFileVO;
import nc.vo.pub.lang.UFDouble;
import nc.vo.so.m32.entity.SaleInvoiceVO;
import nc.vo.so.salequotation.entity.SalequotationHVO;

public class SaleManageExtkkServerImpl implements ISaleManageExtkkServer{

	@Override
	public byte[] saleInvoicePreviewFile(SaleInvoiceVO billvo) throws BusinessException {
		return new SIPreviewFileBp().exec(billvo);
	}

	@Override
	public byte[] filePreviewByNcFile(NCFileVO filevo) throws BusinessException {
		return new SIPreviewFileBp().execByNcFile(filevo);
	}

	@Override
	public UFDouble getExrate(String currtype, SalequotationHVO head) {
		return new QuotBp().getExrate(currtype, head);
	}

	@Override
	public List<String> downloadFile(List<String> fileUrls, String dirtPath) throws BusinessException {
		return FileDownLoadUtil.downloadFile(fileUrls, dirtPath);
	}

}
